package com.devunion.salon.core.model;

import javax.persistence.*;

/**
 * @author spetrakovsky  23.02.2009
 */
@Entity
public class WorkingWeek extends BaseSalonEntity {

    @Embedded
    @AttributeOverrides({
            @AttributeOverride(name="open", column = @Column(name="sundayOpen")),
            @AttributeOverride(name="startTime", column = @Column(name="sundayStartTime")),
            @AttributeOverride(name="endTime", column = @Column(name="sundayEndTime"))
            })
    private WorkingDayInfo sunday;

    @Embedded
    @AttributeOverrides({
            @AttributeOverride(name="open", column = @Column(name="mondayOpen")),
            @AttributeOverride(name="startTime", column = @Column(name="mondayStartTime")),
            @AttributeOverride(name="endTime", column = @Column(name="mondayEndTime"))
            })
    private WorkingDayInfo monday;

    @Embedded
    @AttributeOverrides({
            @AttributeOverride(name="open", column = @Column(name="tuesdayOpen")),
            @AttributeOverride(name="startTime", column = @Column(name="tuesdayStartTime")),
            @AttributeOverride(name="endTime", column = @Column(name="tuesdayEndTime"))
            })
    private WorkingDayInfo tuesday;

    @Embedded
    @AttributeOverrides({
            @AttributeOverride(name="open", column = @Column(name="wednesdayOpen")),
            @AttributeOverride(name="startTime", column = @Column(name="wednesdayStartTime")),
            @AttributeOverride(name="endTime", column = @Column(name="wednesdayEndTime"))
            })
    private WorkingDayInfo wednesday;

    @Embedded
    @AttributeOverrides({
            @AttributeOverride(name="open", column = @Column(name="thursdayOpen")),
            @AttributeOverride(name="startTime", column = @Column(name="thursdayStartTime")),
            @AttributeOverride(name="endTime", column = @Column(name="thursdayEndTime"))
            })
    private WorkingDayInfo thursday;

    @Embedded
    @AttributeOverrides({
            @AttributeOverride(name="open", column = @Column(name="fridayOpen")),
            @AttributeOverride(name="startTime", column = @Column(name="fridayStartTime")),
            @AttributeOverride(name="endTime", column = @Column(name="fridayEndTime"))
            })
    private WorkingDayInfo friday;

    @Embedded
    @AttributeOverrides({
            @AttributeOverride(name="open", column = @Column(name="saturdayOpen")),
            @AttributeOverride(name="startTime", column = @Column(name="saturdayStartTime")),
            @AttributeOverride(name="endTime", column = @Column(name="saturdayEndTime"))
            })
    private WorkingDayInfo saturday;


    public WorkingDayInfo getSunday() {
        return sunday;
    }

    public void setSunday(WorkingDayInfo sunday) {
        this.sunday = sunday;
    }

    public WorkingDayInfo getMonday() {
        return monday;
    }

    public void setMonday(WorkingDayInfo monday) {
        this.monday = monday;
    }

    public WorkingDayInfo getTuesday() {
        return tuesday;
    }

    public void setTuesday(WorkingDayInfo tuesday) {
        this.tuesday = tuesday;
    }

    public WorkingDayInfo getWednesday() {
        return wednesday;
    }

    public void setWednesday(WorkingDayInfo wednesday) {
        this.wednesday = wednesday;
    }

    public WorkingDayInfo getThursday() {
        return thursday;
    }

    public void setThursday(WorkingDayInfo thursday) {
        this.thursday = thursday;
    }

    public WorkingDayInfo getFriday() {
        return friday;
    }

    public void setFriday(WorkingDayInfo friday) {
        this.friday = friday;
    }

    public WorkingDayInfo getSaturday() {
        return saturday;
    }

    public void setSaturday(WorkingDayInfo saturday) {
        this.saturday = saturday;
    }
}
